<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/> 
   <meta name="author" content="deepgully@gmail.com" />
   <meta name="keywords" content="记账, 账本, account book, expense" /> 
   <meta name="description" content="网络记帐本,支持个人或组织账本." />
   <link href="/static/styles/sitestyle_en.css" rel="stylesheet"/>
   {% for style in css %}
   <link href="{{style}}" rel="stylesheet"/>
   {% endfor %}
   <title>Expenses Book</title>
   </head>
   <body>
<script type="text/javascript" defer="defer">
function changeGroup()
{ 
  var   myForm=document.forms['yourgroups'];  
  myForm.submit();   
}
</script>
        <table class="maintitle"><tbody>
		<tr>
		<td style="width:240px;"><a href="/"><img style="border:0;" src="/static/images/logo.png" alt="Expenses Book Logo"/> </a></td>
		<td style="text-align:left;">
		<table>
		<tr>
		<td colspan="2">Current User: <a href="/profile">{{curUser.NickName|escape}}</a>  | <a href="/">Back to Home</a> | <a href="/logout">Logout</a> |</td>
		</tr>
		<tr>
		<td>Your Groups:</td>
		<td style="text-align:left;">
          <div>
          {%if curUser.GetAllGroups%}
             <form id="yourgroups" method="post" action="/summary/">
				 <ins><select class="groupname" name="groupselect" onchange="changeGroup()">
                  {% for group in curUser.GetAllGroups %}
	    		  <option {%ifequal group.GroupName curGroup.GroupName %}selected="selected"{%endifequal%} value="{{group.GroupName|escape}}">{{group.GroupName|escape}}</option>
	    		  {%endfor%}
  				 </select></ins>
  		   </form>
  		   {%endif%}
  		  </div>
  		</td>
		</tr>
		<tr>
		<td id="flash-msg" colspan="2" class="flash-msg">&nbsp;{%if flash.msg %}{{ flash.msg|escape }} {% endif %} </td>
		</tr>
		</table>
		</td>
        </tr>
        </tbody></table>
        <table class="maintable"> <tbody>
	            <tr valign="top" align="left" > 
	               <td class="leftside">
	                  <div class="menu">
	                   {%if not nomenu %}
	                   <div class="separate">Actions</div>
	                   <div {% if show_summary %} class="menuselect" {% endif %}><a href="/summary">Summary</a></div>
	                   <div {% if show_notpay %} class="menuselect" {% endif %}><a href="/notpay">NotPay</a></div>
                       <div {% if show_additem %} class="menuselect" {% endif %}><a href="/additem">Add Item</a></div>
                       <div {% if show_incomes %} class="menuselect" {% endif %}><a href="/incomes">Income List</a></div>
                       <div {% if show_payouts %} class="menuselect" {% endif %}><a href="/payouts">Payout List</a></div>
                       <div {% if show_report %} class="menuselect" {% endif %}><a href="/report">Report</a></div>
                       {%endif%}
                       {%if isAdmin%}
                       <div class="separate">Manage</div>
                       <div {% if show_awaiting %} class="menuselect" {% endif %}><a href="/awaiting">Awaiting List</a></div>
                       <div {% if show_users %} class="menuselect" {% endif %}><a href="/groupusers">User List</a></div>
                       <div {% if show_admins %} class="menuselect" {% endif %}><a href="/groupadmins">Admins List</a></div>
                       {%endif%} 
                      </div>
                      
                      <div class="poweredby">
                      <div>©2009</div>
                      <div>ExpensesBook</div>
                      <div>
                      <a href="http://code.google.com/appengine/">
                      <img alt="Powered by Google App Engine" src="/static/images/appengine-noborder-120x30.gif"/>
                      </a>
                      </div>
                      <div>&nbsp;</div>
                      <div> <a href="http://validator.w3.org/check?uri=referer">
    						<img src="/static/images/w3c/valid-xhtml11.png"
        					alt="Valid XHTML 1.1" height="31" width="88" /></a>
                      </div>
                       <div>Validated by W3C</div>
                      </div>
                  </td>
	               <td class="rightside">
	                  <div class="content"> 
	                    {% block content %}content{% endblock %}
	                  </div>
	               </td>
	            </tr>
      </tbody></table>
      <div class="footer">
      </div>
   </body>
</html>